import request from '@/utils/request'

// 查询配送区域单个自提点销量列表
export function listSinglePointSale(query) {
  return request({
    url: '/system/singlePointSale/list',
    method: 'get',
    params: query
  })
}

// 查询配送区域单个自提点销量详细
export function getSinglePointSale(id) {
  return request({
    url: '/system/singlePointSale/' + id,
    method: 'get'
  })
}

// 新增配送区域单个自提点销量
export function addSinglePointSale(data) {
  return request({
    url: '/system/singlePointSale',
    method: 'post',
    data: data
  })
}

// 修改配送区域单个自提点销量
export function updateSinglePointSale(data) {
  return request({
    url: '/system/singlePointSale',
    method: 'put',
    data: data
  })
}

// 删除配送区域单个自提点销量
export function delSinglePointSale(id) {
  return request({
    url: '/system/singlePointSale/' + id,
    method: 'delete'
  })
}

// 导出配送区域单个自提点销量
export function exportSinglePointSale(query) {
  return request({
    url: '/system/singlePointSale/export',
    method: 'get',
    params: query
  })
}